fixed issue #7, now creates warning when overwriting a file
fixed issue #7