added option to print commands only
added option to execute input file and take its output as commands