Open loop simulation #23 #50

Fixed the open-loop simulation, and also added time simulation to it. This should then close two issues. ( #23 and #50 )