ENH: fix formatting, initialize buffers with zero

see bug 3550
Merge pull request #14 from fedorov/master

ENH: fix formatting, initialize buffers with zero