Updated the example and fixed two typos