added switch for yes/no of writing out an initial file after IC read