Simulation bugs + period

Corrected a bug where the info in sim was corrupted by PMsim. Now PMsim
is a shallow copy of sim (deriving from matlab.mixin.Copyable class).

Added a simple code to calculate the gait's period.
Added TestSim (a copy of AlexSim), to stop bugging Alex with my tests :)