fixed the timeDiff calculations and wrote tests for it.

Fixed the end of line character to be system-specific so that Shane can open the log using Notepad and see the lines wrap properly without having to use a real text editor.