added common.h
some comments