The computational tools for whole-brain imaging and the neural dynamics of behaviors in C. elegans