Moving things around to make it easier to read, managed to get configuration files to generate properly, still some bugs and glitches related to item id conflicts