More explicit errors

Fixes #43. Fixes #26 .