tidied up my script code, putting my scratchings somewhere else in separate doc to remember how I got from point A to B, but keeping code more DRY.