Implemented invert function for schedule

Also changed “T” to “TU”, added a couple of functions to various
classes, and implemented a test case for inverting.