Fixed a couple of issues, got the mod to run.
Crashes in GUI (tab icon issues), that seems the only thing left to fix.