Almost done, had to stop for some other work. Just need attribute entropy calculation, and bugtest. Bugtest might wait until tomorrow.