Store io object in this.io to make it accessible

As discussed in pullrequest #34