API documentation improvements.
Fix compiler warnings (mostly unused variables).
Run in application track with --check-models.