Fixing compilation issues and adding some comments to propagation_distance_field