adding c-line arguments and csv save