[NONE] Refactored example (ensured that linked elements are handled properly).
[NONE] Cleanup code base.