Implemented timing in main.f90. Fixes #23