Cleaned up project-specific export code and old commented lines
Enforced non-zero distances in topoProd_p() to avoid NaN in output.