Added noise and refactored analyzeAC.R and graphAC.R to prepare for superimposing curves