Added decimal to ones complement functinality, and fixed twos complement conversion