Core: fixed some bugs. Code cleanup. 5-th example added
5-th example added