use iteratoration by reference loop
remove forgotten debug related line
Merge pull request #9 from lvrach/master

Bug #7 fix.