added the breaklines function, takes numer of words in a line as argument and writes to fout