Cleaned up and added the J-Doc for AB method.

Removed the extra system.out and started to change from magic constants
to final vars.