error message improved
implemented logging with the class communication