Added unit-tests for runExamples.
Added functional test for CoreExamples.
Clean up in examples. Added logger.
Added activeNode example.