update code and documentation to use the new irony-completion API