Now making the bin length correction
Finished a pretty big refactor of the marginal density estiamtion code