Add a return parameter to moving baseline finder, and split parameters into different modes