fix end of line, format doc