check added
Merge pull request #188 from pisaychuk/master

extra check added
improve asserts
assert fixed
total instances assert improved