Some work on event formatting.

Get properties by reflection. Use Optional as things can fail.
Merge pull request #117 from csmith/master

Some work on event formatting.