Clean up of some scripts that are no longer used (toCSV, toCSVsmall, xmltocsv). Bug fix in moveLogFiles, and better error checking.