added "author:" to function docstrings and some minor formatting