Added method to create CSV of results; also added command line arguments