add key derivation function to public interface
fix RPC error handling
extend example for salted/unsalted variants