Added docstrings
renamed methods
updated example