Fixed return of this object when setting stuff.
Made check support
Addded check for necessity of index 2
Moved defaults to declaration instead of constructor.