applying license

added GPL license to the programm,
and to all files