Added docstrings to update.py