improved debug info printing to show average values
improved debug info printing to show average values
cleaned up cosmetic alignment