added write and write-line
added comment support