Added indocument comments. Added pipe count functionality
Added comments in shell.c