Documentation updates

Edited some typos and updated code samples to wrap properly so they can be viewed.