NotGate added and minor fixes to Gate and Component. JUnit tests for Component, Gate and NotGate.