[RDY] adapt to the style guildelines

semi-automated harvest of low hanging fruit:
change the unorthodox use of whitespace.
brace for function declarations on separate line