Scanlog creation code now complete. No formatting has been done yet and it just dumps into the execution directory, but it works.
scanlog.txt now has some basic formatting. I also changed the file creation and write processes to synchronous calls since that makes much more sense when writing to a file.
Added some commenting to the createScanLog function