Code sample

Add essential code samples and their brief explanations.
Expand the "quantum register and measurement" section. 
Add "Function definition" and "Lambda" sections.