Added freeing functions for the various structs used and added the unique function to sets.c
Renamed checkforCSet to getCSet