Function correction

Done with the following corrections on physics peaks.

1. add center position, such as gauss_peak(area, std, dx) --> gauss_peak(x, area, center, std).

2. put independent variable x as the first argument to the function. I suggest we use this format.
if this isn't needed might as well delete it.