add some comments to Model code