Update licence to Apache 2 and add NOTICE file