Cleaning up, documented, moved general list functions (groupby, mkset) from Util to Lambda