checks if file is provided - fixes #7
Merge pull request #8 from tcoopman/master

checks if file is provided - fixes #7