Added comments and copyright notice