added comments on argument parsing