Fixed file loading on mac
Fixed file loading on map, made debug messages clearer