Update library
Make default filename customizable
Add ".csv" suffix for the default file name
Add default extension if the file name has no extension