Fixes for input and changes for displaying labels for addresses

for input: allow control-D/EOF to exit cleanly, fix some tab/space indentation issues. for display: convert addresses to labels from addresses or address book if API calls are available