Fix example and other style cleanup in Basic Plugin Creation article. Fixes #310. Fixes #311.