Megaf, I'm about half way through. I just want to understand it and as it was it was too unwieldly. Through the process I've found a couple of bugs (not fixed but commented) and also redundant code (doing things more than once)

And my cleanup is still messy but at least it's getting understandable now. I'm only restructuring atm (splitting stuff into functions) and will refactor after that's done but already there are "strange" things that pop out just because thing are in functions