Fixed controller for CSV output, added button and coorsponding js and png