added file writer and html formatter