Added the generic posterior
Uses generic posteriors
Fixed unknown field bug
Fixed error with generic posteriors
Autopep8