formatted for max 80 character line lengths
improved style of test for empty list
converted to joined_lower function naming style
minor formatting