Add parseFile function
Add file parsing to Main