Add some more checks to example, fix a sizeof() check that ended up
getting the wrong size after something was changed from struct to
pointer.