Reorganized, removed some extraneous functions
Changed >>+ to joint and added bayes
Refactored posterior to use bayes