fixed bug where decoder reverses order of bits of each character; moved binary decoding into BinaryTool class