modified to work with the new prune_network structure
fixed some typos
found a bug regarding the triangle inequality's lower bound that produced k=0 triples
added a check so modes are not created which are unphysical
added a check so modes are not created which are unphysical