Optimised Ref-Shift Script for run time

Added dynamic bounds to area searched for next tau - greatly reduces
computational time.
Merge branch 'develop'