refactor CSVWriter. Implement #as_csv
bump to 0.5.0