use nanotimer for better loop scheduling

fixes #2 - decided to leave in the debugging options under a new debug
object