GC fixing and log4j
add lib and fix gitignore