Implementing functionality to export to Excel

This is to resolve issue #225