File created
Moved functions to webapp.py
Added functions from other files