Fix code style, regenerate API doc