Added support for FugueCoin
Cleaned up source code.