Added alternate constructor for TimeClass

So you can put in start and end times instead of duration. Modified
accordingly.