some small bugfixes in the weighting schemas and iterators and adding debugging some lowlevel functions