CSV save works

Better error handling and the file sane now works from URL params.