Minor cody tidy up (white space, added var, redeclaration of PanelAdvanced).
Merge pull request #250 from ssarj/gh-pages

Minor tidy up of code example