Merge pull request #80 from yupe/master

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

UPD: small fixes