adding in knot labelling script
removed unnecessary comment from max_margin
merging max_margin