cleaned time modules, fixed some compiler warnings