added basic fileio functionality - text editor is now actually usable