Added ability to turn off custom edge weights
Debug print
Fixed branching bug