fixed error handling, closes #8
improved use of namespaces to query document
added test setup, #1
changed name to centro