fix completion prefix updating
better handling of when a completion can end
handle words to complete with an underscore
remove debugging
build