fixed error check, a comment, manipulate_file all in memory now