Return object from constructor

Trying to call the constructor results in an undefined return. This adds a returned object.