Checks for invalid input
Merge pull request #13 from jaapmengers/feature/input-checking

Checks for invalid input