Added and implemented ResourceManager::addResourceType, fixed formatting