added how to run program from terminal.