Created common header

Moved common header code into one file.