finished BA graph generator, needs testing; cleaned print statements