gitignore done
include logs dir
fix some bugs