Fixed new line bug in messaging
Added random private key generation