Cleaned up, Flask server now in main.py