correcting bugs, adding sample
Merge pull request #9 from lucasmatthieu/master

Bugs correcting + sample