Adds comments and renames MultipleInputsGate