Added documentation to two gateways and refactored KeyGateway slightly