changed output file extension to csv
some modifications to support WPS wrapper function
WPS configuration