Removed unnecessary includes.
Fixed Base58 encoding (it returned wrong results before)
Added base58 decoding.