Add example from readme
Use bitwise operations for bitmasks in examples
Merge pull request #2 from clue/add-examples

Add examples