Fixed various bugs with the example plug-in code.