Enhance the docs and fix the model type checking