Added Bin::writeBin()
Oops fixed namespace