Update tuning.md

Make the example more compilable
Merge pull request #546 from ash211/patch-2

Update tuning.md