fixing binary converter contd
commit fix
Binary Fixed

Finally fixed binary encoder. Also added lots of commenting.