moved autocompletion algorithm to external c shared library and added more keywords to the autocompletion