Fix comment
Improved SampleApplication's API & performance (thanks to @jcmonnin).