Implemented keysSet and fromSet and fixed some oversights with splitRoot