added some functions for knownsets / Fixed some bugs with knownsets / refactored some code