Put the decorators in front of the function definition i.s.o. class definition.

I'm no decorator expert by any means, so I'm not sure whether the current class decorators do the same as my proposed changes. If they do, feel free to disregard this PR, although perhaps a case could be made for consistency and make the examples look like elsewhere found in the code tree.
Merge pull request #289 from rogererens/patch-2

Put the decorators in front of the function definition i.s.o. class defi...