Added copyright notices. Added comments to examples.