incorporate steve's changes and re-introduce string sorting
remove training whitespace
deluxe version with automatic call to pager and flags summary