added nearly all printing and dissipation code from BeliefPropagationMets, added dissipate and writeOutput options