fixes to errors in delegation docs plus code samples
added ref to generate button
corrected order of user and productid
Merge pull request #2183 from joshtwist/master

Correction to hash order and new code examples