Allow file type specification from command line
Apply a few hlint suggestions