Some fixes to get the snippet code working.
Added an explanation.
Merge pull request #191 from akbargumbira/master

Some fixes to get the snippet code working