Fix minor typos in code documentation