add csv export and add checkOperator function

Signed-off-by: Suhayb El Wardany <me@suw.me>