Fixed 2 bugs

1. Fixed a miscalculation of total sleep in the final output file
2. Fixed a bug causing overly large actograms when panels per page is
low.