Added printFile function and made main undefined

main is back to undefined and printFile can print the lexed and parsed
content of a file.