Edited a comment and plugged a leak in the sample app