Revamped ACG.java

Format changes and moved methods and variables around