fixed MassBalance. tweaked output