added lines to cpp and some changes to box_plot.py