Feature/mfr pdf

Not quite ready. Still needs some manual testing.