code: function (values) {
    var q = _q.defer();
    loRead().then(function (data) {
      var enter = '';
      for (var key in values) {
        if (values.hasOwnProperty(key)) {
          enter += '\n#' + key + '\n' + values[key];
        }
      }
      if (!data || data === ''){
        data = startToken + enter + endToken;
      }else if (data.split(regex).length > 1) {
        data =  data.replace(regex, startToken +enter+ endToken).trim();
      }else{
        data +='\n' + startToken + enter + endToken;
      }
      loWrite(data).then(function () {
        q.resolve();
      });
    });
    return q.promise;
  }
docs: util functions