Making UMD compat, and tidying

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