Add javadoc and mark getAppId api public