Add comments and rename some internal variable and method of ostabs and appdesk widget