code: function(tox, opts) {
    // If one argument and not tox, assume opts
    if(arguments.length === 1 && !(tox instanceof Tox)) {
      opts = tox;
      tox = undefined;
    }
  
    if(!(tox instanceof Tox)) {
      tox = undefined;
      //var err = new Error('Tox instance required for ToxEncryptSave');
      //throw err;
    }
  
    if(!opts) {
      opts = {};
    }
  
    this._tox = tox;
    this._libpath = opts['path'];
  
    if(opts['sync'] === undefined || opts['sync'] === null) {
      this._sync = true;
    } else {
      this._sync = !!opts['sync'];
    }
  
    this._toxencryptsave = this.createLibrary(this._libpath);
  }
docs: Construct a new ToxEncryptSave.
  @class
  @param {Tox} [tox] Tox instance
  @param {Object} [opts] Options
  @param {String} [opts.path] toxencryptsave library path, will
  use the default if not specified
  @param {Boolean} [opts.sync=true] If true, will have async methods behave
  like sync methods if no callback given