Fixed peak fitting with binned spectrum

Also fixed restricting/changing default width of the peaks