update doc and remove unused code