add mainpage.dox for document
add more comments for source code