updated docs
factored out model