Added methods to print to file in a file-readable format and tested (working)