Fixed a few typos
Attempted to make example consistent with specification