Changed the resource table to be loaded on demand in order to conserve memory and speed up map loading
Optimized I/O a bit