Refactored code in knot_network_pan.cpp and edited a print