Update main.c

updated license to v3