give outline of the document with minor bug fix. add some todos
improve the doc
fix bugs