Adds log method and documentation