Nicer errors

Fixes #107