update comments for model code