final fixes to background parsing, added CSV export