Imporve documentation and fix typos.