Add more verbose error messages; fixes #6.