Fix and add some lines to document