Change spurious use of malloc to new

Couple of eol whitespace removals as well