fixed changeFileName a little so it now checks if file already exist before doing anything.