updating common.h and defs.h
updated .gitignore