adding license header, preparations for teamcity progress messages
outputting teamcity progress messages if flag present