Fixed some typos and adjustments for module.exports for models.