added backup feature for overwriting files. bit better console logging