fix encoding bug in private keys, update readme