Fixed bug, where transactions with multiple inputs weren't passing validation
Some various bug fixes, and adding documentation to some functions
Merge pull request #9 from Bit-Wasp/bug_fix

Bug fix