Better error messages.

Removed trailing whitespace.
Resolves #3.