moved time things into their own class, finished analysis functions