main function can be executed from ipython console
added mean bar display to the plot -TODO finalize the display