Routine relation logic added

Fixed a few logic bugs with time end earlier than start, and using ID
where class was needed for the tooltips.

Also, some logic has been added that was alert the user if they are
working upper and lower body when they shouldn't be.

TODO: Add logic to determine "score", color incorrect square
backgrounds, add any other literature and equations to content.