Change parameters to use integral values where possible.
Improve handling of timestep values.
Add exception handler for ApplicationException.
Flatten integers.
Reorganize timestep handling.