added in private key output and changed vars