Fixed docs typos and added code markers around functions in docs