Not dead anymore!  Added expected center of mass calculation.  Some more refactoring and typo fixing.  Done for the night, didnt read past distribution on center of mass so far.