added export to csv

Signed-off-by: Alex Izotov <martinandrudy@gmail.com>