Updated output for stdout, added command line arguments, and updated costs to be the correct ones.