Refactor code completion and action
Update version number to 0.2.2