Added 'return this' to make addInputListener and similar methods chainable, see #20