Refactored from CE1 code review

magic strings removed
changed name of checkFile and createDisplay
added spaces to while
updates file at end of every edits