refactored main into a more suitable method
Merge branch 'BitCoin' of https://github.com/Habitats/bitcoupon into BitCoin