update codex to track required/mandatory query params
fix formatting