FIXED: if update() after remove() in prioQueue has no threads, it sets back firstPrio to -1 and firstElement to null now! (this has not been done before which leads to strange errors...) ADDED debug output options & examples