Fixed data type for millisecond conversions.
Added an addTime method.