Fixed calcMaxFreq function

Also added Boolean switches to turn off rotor detection + output, will
add excited cell count soon