Add docblocks for all functions in gateways.php