clean up console.logs and finally fix diffie hellman