line formats changed to be class properties

moved the line formats out of writeLine() and into the init so that they
are not recreated each time writeLine() is called