Added single cell cropping; added abs to slope calculation, to avoid smaller than 0 minimums.