implement the basics of the code completion
only a small fix in coding style