Range fixes, slew fixes, implemented gates, problem with clock output to be resolved