add comments and copyright notice