added TODOs and documentation to controller.js and model.js for future steps. mainly testing and handling errors at this point. after that, we'll see if this version of model.js can handle the templates for real smartdocs