Documented automate.py