modify scala doc, and add space after 'if'