add copyright (GPLv2) to main.c