cleanups

- add licence headers
- optimize imports