added sphix docs and more specific exceptions