Now outputs to .csv.
Fixed the script and removed repeat functionality. Who needs it anyway?
Wrote a csv reader for quickly calculating time periods and summing them.