show me the code with added comments code

# Databricks notebook source
# pip install google-cloud-bigquery


# COMMAND ----------

pip install google-cloud-storage

# COMMAND ----------

# MAGIC %run ./Read_Config

# COMMAND ----------

# MAGIC %run ./pg_Connect

# COMMAND ----------

from google.cloud import bigquery
from google.oauth2 import service_account
from pyspark.sql.functions import concat_ws
import os
import io
import random
from google.cloud import storage
import hashlib
import gzip
import sys
import datetime
import pandas as pd



# COMMAND ----------

def create_target_bucket(extract_id):
    query = f"""select storage_bucket_name from lcef_rule.extract_reg where extract_reg_id={extract_id}"""
    result = execute_sql(query)
    bucket_name = str(result[0]['storage_bucket_name'])
    if bucket_name == '' or bucket_name == None:
        bucket_name =  config.get('TARGET_BUCKET')
    print(f'result-{result}')
    print(f"result_subc-{bucket_name}")
    #env = os.environ.get('CICD_ENV')
    # if env.upper() != 'PROD':
    #   bucket_name= f"""{env.lower()}-{bucket_name}"""
    return bucket_name.replace('_','-').replace(' ','').lower()



def file_delivery_suffix(extract_id):
    query = f"""select file_delivery_suffix from lcef_rule.extract_reg where extract_reg_id={extract_id}"""
    result = execute_sql(query)
    #print(f'result-{result}')
    print(f"result_subc-{result[0]['file_delivery_suffix']}")
    return True if result[0]['file_delivery_suffix'] == '.csv.gz' else False

def get_file_name(