correct some doc typos.
Add a 'indent' option for new(), such that we can pretty-print the HTML