Add writing out ranges to files to make things work more efficiently
Merge branch 'master' of https://github.com/markcurtis1970/Scratchpad