GUI v5

Bug fixes, much neater simpler code, added in Anna's code for drawing
graphs and one or two other little features. I think this is running
pretty well now. I'll try and write up a brief user guide for it
tomorrow, though feel free to ask me if you have any questions, if you
want to play with batch processing or something before then.

I'll also sort out the diagrams tomorrow.