adding return this in constructor function, fixes issue #12