csv change for txt file, as well as main.R