doc updates and code format update