Fixed writing of 'Id' and 'neighbor' attributes for .bin files

This pull request fixes an issue with the .bin file writer where any non-float data channels were written with incorrect data.

I also removed cout statements that slows down the writing of .bin files significantly.