var ContactView = require('../view/Contact');

/**
 * Creates a new Contact
 * @constructor
 * @arg {Object} options - Object hash used to populate instance
 * @arg {string} options.firstName - First name of the contact
 * @arg {string} options.firstName - Last name of the contact
 * @arg {string} options.tel -  name of the contact
 */
var Contact = function(options) {
  if (typeof options !== 'object') {
    throw console.error('`options` is not properly defined');
  }
  this.init(options);
};

Contact.prototype = {
  firstName: '',
  lastName: '',
  tel: '',

  /**
   * @description Creates a new instance of Contact
   */
  init: function(options) {
    var opts = Object.keys(options);
    opts.forEach(function(currentValue){
      this[currentValue] = options[currentValue];
    }, this);

    console.log(this);
    this.save();
  },

  save: function() {
    var key = localStorage.length;
    var contact = {
      firstName: this.firstName,
      lastName: this.lastName,
      tel: this.tel
    };

    localStorage.setItem(key, JSON.stringify(contact));
    var contactView = new ContactView(key, contact);
  }
};

Contact.remove = function(id) {
  localStorage.removeItem(id);
};

module.exports = Contact;

@@ -64,25 +64,26 @@
  new Contact
+.
 %0A
-
  * @construc
@@ -150,16 +150,17 @@
 instance
+.
 %0A * @arg
@@ -206,32 +206,33 @@
 e of the contact
+.
 %0A * @arg %7Bstring
@@ -277,16 +277,17 @@
  contact
+.
 %0A * @arg
@@ -310,21 +310,32 @@
 s.tel - 
- name
+Telephone number
  of the 
@@ -341,16 +341,17 @@
  contact
+.
 %0A */%0Avar
@@ -634,16 +634,17 @@
  Contact
+.
 %0A   */%0A 

Use periods on senteces in docs