write data to csv file
make code ipython friendly
generate thread size histogram