Documentation for monitor.py