added copyright headers
fixed a check headers bug