fix monitor.py and update docs