Added cmdline

-Added cmdline()
-Added comments