match PF in C code with intialization (can still be improved), stripped stochastic part of inference (for debugging; easy to re-add); got rid of code handling interaction term, corrected updates and cleaned up a little (much still to be done.)