updates doc and style.