fix copyright headers
extract base58 functions to separate source file