Cleaned up docstrings and whitespace.  Added numeric bounds where appropriate