Finish set.h, minor progress on implementation functions