fixed API, added basic flask setup
fixed some AeriesAPI stuff