fixed locals/nonlocals in for loops
removed debug breakpoints
changed Bool[] to BitArray