Added curve fitting to postAnalysis.R