Adding formula for momdec. Committing some straggling changes to ipmcctools.