Add more documentation and other typo fixes.