Flake8, model cleanups, unit test init

- init test suit
- flake8
- model cleanup