added --log [logfile] parameter.

by default logging is not turned on
Merge pull request #4 from mk01/master

--log options, default si no log, preserved std functionality