Merge two versions of get_sw_controller

    Remove print statements
    Add Documentation