Aligned text property naming with other properties
Changed the 'class' property name as its a reserved work (doh!)
Reformatted comments slightly to work better with minifiers