Added more debug statements
Removed unnecessary code
Allow calls to registerObject
Fix reading of objects from pack files