Fixing comments and adding the object logging feature