updated CSV compilation mechanism for speed
updated CSV export capability