some code cleaning and reformatting / indentation corrected.
new function: add_item_once: like sort -u without sorting, or uniq on non-neighboured terms.
URLs from cmd-line now processed only once, even if mentioned more than once at cli.