style cleanup: trailing whitespace; space before function params