Script reorganized in functions
testing
testing
debug switch to turn on/off logging of requests.
correct initial request domain
added fetch_transaction to transaction_pool