devcode backup

dev dev dev.
fixed a GATE problem - had a math.min() instead of a math.max(). derf!
also removed some "== true"s