Fixed a whole lot of things, added path gen. Does not work due to faulty map class