remove fflush for logging using stdout
refactoring, connected CException project