Added support for examples in sub packages.
Moved examples into sub packages.