LRDOCS-764: Correct typos and edit comments