Code review changes in model functions and docs