Added loadClass(name, resolve) method and fixed an issue with getResoure