added grep file and got grep working, modified cat and more to behave correctly with invalid inputs