Add intitialize method to wallet. Also changed how to transaction is
being written to block.