add grep.c
handle -w in main.c
rename a few things