preliminary time step functionality
eclipse messed up the functions I commented out.