Merge pull request #20 from sinjax/master

A few minor changes
Redirect "which" output to the log file