fixed seg fault, removed energie in itd file and createMap function