Updated docstrings
Revised doc strings, added a few additional checks.