Added function and loops for associating frame numbers with peaks
Fixed missing call to getFrameCounter