completed hw3, fixed and refactored searchshell.c