Added loadFile method and changed "saveToFile" to "saveFile"