AddPeak() will not add peak out of data range.  Refs #7847.
Iterate peaks through lebailfunction.  Refs #7847.
Fixed some error and add 1 unit test.  Refs #7847.
Remove some unused code.  Refs #7847.