code: function constructor(o) {
      var f = main.bind(o);
      o.current = o.states.initial || o.initial();
      o.machine = f;
      return f;
  }
docs: Returns the machine object main function. Sets the initial state as current