almost complete rewrite...

killed many lines...got it to work from internet, needs CSV output
code...has CSV string