deleted unwanted functions

Deleted loadResource .. deleted initResource (both from the .cpp) fixed
a couple of iterator errors in initPack.