Cleaned up FileInput class and fixed a few defects

Oops forgot to upload this on wednesday, no changes were made to Main
class so i just uploaded FileInput