moved exception to new exceptions module and made minor edits to
docstrings