added read/write to files, need to work on restoring text when reloading