which.c -a -h options added and tested