Adding support for defaultproperties. Resolved #2