Make the code proper
Fix a bug with the usToTicks method
Fix a bug with the usToTicks method