create curves from seperate directory, looping over each .txt file