Fixed the examples to reflect the current package structure.
Added copyright and license header.