add doc dir
remove some useless files and fix some bugs