dir.c basic formatting added