fixed template.sh (username in myproxyclient - line)
implemented creation of "failed"-table
implemented cyclic downloading