merge of updates from cezary. Upped version to 0.4.1
fixes default values for logFile and errFile when not defined