Lots of changes.  Code needs drastic cleaning up, but it is now able to infer from learned distributions.