added create and destroy log methods.
added comments and some additional logging.