fixes SUM's style
many others instead of any others
minor modifications to algorithm formatting