Added comments to dir.c