Deleted unneseccary files. Corrected errors in the matrix generation code and the file saving code.