Revert "Revert "partial implementation of export to excel""

This reverts commit 45c7eda051c5da5f4a260af07a67ca47fb0551ab.