Added new cmd features

Now if no output name is stated, the script would auto-name it, and you can select segment size as an argument with no need to edit the script.