tidy-up of code to use as doc samples
re-homing resource files
Merge pull request #9 from markmcd/master

2 tidy-up changes