fix typos and improve styling in SnapshotAgent.py