Restructed flask app, created stub functions for serveries.py