Made some changes to output. 

Most importantly file writing now uses outputWriter.newLine() and a tally of checked elements is now written to the top of the file.