guard against attempting to find a next/previous index in an empty list
if minLength is set to null show suggestions immediately. improve example with target.
Merge pull request #2 from gustavnikolaj/master

Fix a bug, and allow minLength 0.