Fixed nextinput validation

properly stop nextinput creation when we correctly match the input
correctly hex encode the tx hash index when its > 10
Merge pull request #22 from achamely/patch-1

Fixed nextinput validation