Smart leverage

Re-wrote the standardized CDF to be clearer and more specific as to contract parameters and multisig logic.