Major restructure

Structured as suggested, with pre-existing stuff moved and examples
added. Details in Readme.md.