Better error messages (closes #9)