add several style attributes and fix rotation
fix bug that was sorting text by length, making multi-line text display out of order