added doc for record save logic