Adds some code examples

 - Adds a code example in the readme front page.
 - Adds the same example as source code in a dedicated folder.