Neural Mechanisms of Gait Regulation and Olfactory Plasticity in Caenorhabditis elegans