Improve documentation for model

Adds more code comments to the Pully example and a "Defining the model for a form" section to the documentation.