Simple doc fixes

Removing ?> from code examples so that users don't add them to their own code, and minor changes to the blog tutorial example.