Implemented refillkeypool and importprivkey