completed docs on activity.py