CSV Download functional and cleaned up.