rename writeLine to writeString, add writeLine
Merge pull request #1414 from Heather/writeLine

rename writeLine to writeString, add writeLine