added ignore *.log
some refactoring
Small changes