Rewrote toMin function to round up/down depending on how many minutes
there are.
Refactored code. Changed color scheme.