redoing file commands, going to change end to count
implemented all file functions (besides replace) added "dofile"