added download of cites as txt in other views.

also optimized file output