add diagrams and sample codes
update README.txt