added hours functions
implemented new functions
changed comments