updated progress on newmain.cc add sha512.cc