Correcting typos in code examples

 these changes correct what I believe to be typos