various fixes

correct rpc console crash, checkpoints, added necessary files, deleted unnecessary files and a few other fixes.