Fixed some simple issues found by cppcheck
Code style update for pool.h
Updated .gitignore