fixed FindBugs errors
removed redundant null-check and unused field
checked creation of a new log file