Revises documentation. Adds comments through code. Revises docstrings.