cleanup error checks and messages

- verify input path is a file
- improve wording of error messages