fixed bugs
fixed testnode issue
Merge pull request #15 from asfink/master

Fixed issue #7