Changed file storage

Modified to create a new file instead of appending.  Added turning on
LD5 in the event of an error.  Added Debug mode for serial output.