Fix minor code style bugs

Remove some trailing whitespace and a missing final newline.