Huge number of bugfixes, and finished more code completion stuff