Merge pull request #1 from YuryGrinenko/master

added warnings after code review