update comment of bundle_adjustment and refine code