added AndGate3 subclass and makefile
minor changes