update: Added docstrings

* Added docstrings in google-style where appropriate.