-fixed errors
-simulation now works