A previously working version of Kcore

This version works but is out of date to the current repo. I will update this later when I have time to rebase it on top of the current master, but this should serve as a mostly complete reference for now.