refactoring to use CSL
more reorg
added example projects