major updates to code completion

code completion is now actually usable.