added flask script and reworked some functions
Merge branch 'master' of https://github.com/natemara/miami-api