Start breaking this up into modules and executables.
put the remainig code which dumps data about the ACM to the terminal into a properly named executable
cleanup