Refactored to allow toggling between TestNet and MainNet
Merge pull request #21 from etripier/master

Refactored to allow toggling between TestNet and MainNet