more style guide changes and added docstrings for utils.py