added stats and made bar graphs more universal