Add function docstrings
style update to conform with PEP-8