Restructured packages, wrote tests and made all functions pass them. Made my own base58 encode/decode subpackage because of differing alphabet and handling of 0.