Updated writer to take in an article dictionary.