added comments to peakAll and peakAt