some explanation in comments added
Merge pull request #239 from gavrix/bugfix

some explanation in comments added