Did some refactoring and some cleaning up.  I also modified the FlagsFieldGen to have the field diminish over distance.