Added CORS to API

Fixed example model bugs