Added CORS support, updated API docs