implemented CSV support, now writing tests