Integrated input generation; Added firing extraction
Added R code for plotting