passing in network to toWIF
Merge pull request #2 from robjohnson189/networkfix

passing in network to toWIF