Added __call accessor so that attributes accessed with get notation
Added optgroup class
Updated tests