Accidentally deleted some files. Readded them. Also wrote a function to format the date and time for a filename and changed the way logfiles are written (for the moment)