added non-interactive mode
Merge pull request #7 from mpath/noninteract

added non-interactive mode