further refinements

Improved time string to ms convertion, consolidated tick functions,
simplified some code.