Initial porting of ResourceMananger class with added documentation.
Still needs to undergo testing.