framed writeLog() method & syntax fixes