made location required and errors work properly

Fixes #47 
what is this doing?