Added a secont threshold to distinguish positive and negative thresholds
Added centroid calculation at the same time as step extraction