Add an option to allow backfilling of data
Merge pull request #1 from lozzd/master

Add an option to allow backfilling of data
Corrected an issue that caused the script to ignore the very first sleep state change.
- The script now looks for the next sleep state change and compares the change it's currently on to the next, instead of setting an arbitrary start
  point of '0' ahead of the loop.
My last fix caused the script to ignore the very last datapoint.
- This update corrects that. Equality for all data points!
Merge pull request #3 from RyanFrantz/master

Holy hell. Lot's o' fixes from @lozzd and myself.