Physical properties of cometary nuclei and studies of distant activity