add tests, better printout, rename domains to tlds