Update shell.c

added descriptive comments