fix indeces to get peak and area-under-curve
implement Nir 2011 and improved doc
rearrange method slighly in spindle