Fixed confusing typos

This is only some typo fixes but in pretty essential example source code.