Fix typos and style functions and events in markdown files.