updates from eordano comments. Better jsdocs some more tests. Still WIP
better blackbox wallet tests
fix karma