- Add MIT license
- add domId to some interfaces and minor cleanups