added __getattr__ and docstrings
writing docstrings