Made times of day more extensible

This update makes the times of day for the program more extensible, and
also tunes the algorithm that optimizes the days between appointments.