Add typeahead feature including custom messages and tests (fixed #14)