re-did do-math to loop through operations sets and apply them according to comment spec
Added thus far useless debug macro to utils