Added loader to Resources

Used the loader in  Resources.loadAll();