dir.c some basic cleanup after major code changes and addition of columnar alphabetization