REF: rename top->peek
REF: split up complicated loop condition

in preperation for more efficient handling of dead items
DOC
slightly mroe efficient handling of dead items
REF: remove superfluous variables
REF: simply return the iterator to the dead partition when we decrease it
minor simplification by removing superfluous if
REF for readability