Fixed bugs and made it load the atlases in the same folder as the json