Added ability to specify output file on command line, becausee Windows insists on being terrible.