Pod fixes

This pull request adds the missing POD encoding declarations and fixes syntax errors in the example code.

It doesn't fix the POD coverage errors :-(