updated documentation and print to file for testnet.