adding newline to files, adding multiple insert support