Added flake8, cleaned up project accordingly