Minor changes
Return false for end of file
Implemented late reading of input