Fixed initialization and conversion factors

Forgot to use self keyword during initialization and used wrong
milliseconds to seconds conversion factor.