javadocs

I also made a few changes to TimeData's implementation of compareTo and
had it implement Comparable interface