added better exceptions and csv output