Modified Gate getTaps method
Fixed Gate disconnection bug.
Renamed calc_output method to _calc_output