ENH Better error messages

This would have saved me some confusion in running the code.