Moved front end examples into examples directory.

Also packaged classes into main module