Added comparator functions and moved from adc to Comparator source and
header