Some fixes to the code posting.
Merge pull request #1377 from fmoloney/sampleAppFix

Some fixes when posting code.