add outputting of Q-F vector to file