updated variable name
prints certain errors to both stderr and stdout
improved handling of link matches, separates out striking image