Auto Eclipse formatting.

A couple of minor changes and mostly whitespace automatic formatting.
Fixing AG algo.

Two critical bugs undermined the algorithm.