update formatting, add random key gen