Added files from minerva, stripped out most of the UI from chains