added warnings after code review
Merge pull request #1 from YuryGrinenko/master

added warnings after code review