Added a few attributes.
Fixing a few thing.
Added new attributes. Implemented onMeasure().