add license header to main.cpp