Doc configuration and remove trailing white spaces.