added some generic visitors to sdg_utils; fixed some small bugs and made some small improvements