some reformatting, bugfix to peakbgfit (it was ignoring
use_window_limits)