Implemented entity expansion and findWikiLinks

added some entity debugging code to sketchgenerator