Fixed a comment issue and changed the name of ResourceAllocator to ResourceManager for the sake of consistency