Added error function. Functionalized main code so that it may be called repeatedly, mass-producing recursive art.