Tank brigades added, code cleanup/commenting

The code is commented and cleaned up. Bugs fixed.