added docs and examples for model prototype