Added file reading and writing. Added editing functions.