Added convertValueToBinaryString function.
Added ifndef protections