Documented get model by id methods. Minor refactoring.
Added support for pagination
Removed stray debugging instruction. Removed unneeded return statements