added debug setting to cmake so we can get some line numbers in valgrind and gdb, faster dictionary search and we now copy all resources into memory. we should now have everything to run and we can close the resource file.