Fix usage of contentInset, split centersContent property, add documentation.

Fixes usage of contentInset by adding it to the one that is calculated
to center the content.
Split centersContent property to make horizontal and vertical centering
configurable independently.
Add doxygen comment documentation.
Update readme to point to new properties.