some improvement in plots and add some code chunks in data table