Remove copyrights from header comments, into COPYRIGHT file

Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
Rename 2 variables to avoid compiler warnings

Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>