Resolves gh-5: Adds unit tests and fixes for osc.timeTag().
Some general code compaction.