added beautiful else-if chain

checks for underline, bold, and reverse and turns
off as appropriate.
hjkl done