made file reader and worked on input system