fixed typos in samples

added a few additional comments for clarity