Inline snippet select upon duplicate keys
Refactorings and updated readme