Add commentary to observer.py