Remove whitespace, minor clean up

Modified code to build <li> elements without whitespace.  Cleaned up
tabbing in code for readability.  Added default fall-through for
icon_orientation detection.