Removed unnecessary hex conversion in the integer to binary conversion case. Added instead direct conversion integer -> binary.