Updated: function integration and flake8

- Function integration for easier with other programs
- flake8 proven