flattening directory tree, adding copyright notices