Updates TODO priority and removes finished items