Add gettimes()
Formatting/style/readability fixes, use gettimes(), prepare for alignment fixups