added support for log files

use -logPath for logging into a text file