Unify timing values in stats output for better readability.
Major bug fixes, cleanups and extra stats.