Fixed make, set up test, fixed bugs with degree and complement