add copyright notice
corrections following comments