added license to main.cpp