Added command line argument handling, modified print at end of algorithm loop