Added comment for the publish and draft functions.