Making UMD compat, and tidying

- [ ] Ready for merge

TODO

- [ ] docs / README
- [ ] UMD testing
- [ ] Implement outstanding fixes (...which are?)