add check function for BIP39

fixes #393
Merge remote-tracking branch 'devrandom/bip39a'