Fixed a few errors in manager.go
Completed resource manager creation function