Last years program. Written by Alec H, with some work by me when he let me have the files. I dont agree with its structure, but It got the job done.