Fixed a bug in writeDom. Inserted new note in front of every article.