Fixed input file bug when passing in a directory vs a file
Merge pull request #77 from ChrisTruncer/fileinputbug

Fixed input file bug when passing in a directory vs a file