added unit tests + functionality to generate hours for TopRow
minor comments added