Fix typos and add missing docs.