fixes #16, adding support for specifying the command file

Just added a few lines, not very much at all.