Adding export to CSV and fixing some paging issues.