Added code completion APIs and comments for APIs