Added output option

Changed format of CSV output .