small refactoring and bugfixes
added kill-ring-ido