ENH: fix formatting, initialize buffers with zero

see bug 3550