Refactored code that reads data from file
Changed a 'not while' (ugly) to an 'until' (pretty), and undid changes in commit cd428bb