organized and added notes to model.js
finished adding comments