fix spkike bug. now we are very accurate! also start very clean R script for producing paper's figures/writting up