some memory related adjustments

when inserting a new element we create two nes links (prev and next) which
means that the refcount needs to be increased by two
removed old comments and commented-out code