Fixed some doc and analyze bugs.