Merge pull request #85 from yupe/master

UPD: merge with yupe/master
UPD: small fixes
Merge pull request #926 from angel-kulikov/master

UPD: small fixes