fixed eclipse bugs and added log file option