Updated the debug logging routine to create the file is it does not exisit. Also updated the basic documentation.