converted references to pointers
added a small example
Merge pull request #13 from andrea9940/master

Fixed references and added an example