added sha512 checking of files downloaded