Add some uncommitted code from a few weeks ago

Fixes #1
Add comments describing some payload fields