AlexSim

Worked on simulating Alex's results. Simulator works nicely after
synchronizing the controller (which only takes care of leg retraction
and extension) by doing a phase reset.

Corrected a bug on phase resetting in the controller.
Also caught a bug in Run.m when it reaches the end of tspan.