Cleaned up Main a little and changed the setFileInfo method to take the filepath as an argument and set that value that way.
Moved all of the TRUE string tests into a function.
Cleaned up some of the comments etc.