implement word suggestions via completefunc
add readme
add missing include of <stdexcept>