Merge pull request #111 from yupe/master

UPD: merge with yupe/master
Merge pull request #112 from yupe/master

UPD: merge with yupe/master
UPD: pre-tag commit
Merge pull request #1052 from angel-kulikov/master

UPD: v0.5.2 release