Added examples and copyright (BSD level) to the comments.