added command line code examples