Erobinson/cgm decode

This is to coordinate with #17