moving examples to a standalone project
fixing newKnowledgeBuilder() method
fixing snapshot restoring process