Change spurious use of malloc to new

Couple of eol whitespace removals as well
Clean up using std so it's not stomping namespaces
Merge pull request #5 from s7726/master

Change spurious use of malloc to new