Output summary to file