Support for writing output to excel file

Added support for writing output to excel file.