changes to main.c...updated liscence