Added gbpDir code.
Various changes to accomodate new gadget file processing.  Also fixed a pcounter bug.
Fixed a local Makefile bug.