Add comments to clarify method responsibilities and call replace_bbox in create_hocr_ojects method