added prompt for the overwrite case. Printf statements for y and n not showing up for some reason....