added checking if files exist

check is files already exists, continue at last row of last existing
file AND done "after a "lost trade data error" 60s are not written (if
this error is detected, not only the last entry should be written, but
the whole histo ~~)"