Tests written for process_overlap.
Tests of deprecated functions removed.
Miscellaneous code tidying.