Cleaned up unused functions
Added templates for flask app