added helper functions and btc wallet gen
Merge remote-tracking branch 'origin/master'