Clarify error message with more information.
Add comments

Closes #5.
Slight refactor on return statements.