Cleaned up and commented d_grep.c/d_grep.h.