add cli example using scala scopt.
reformat scala code.