Made recommended changes in conversions and count measurements

-counts done with frequency
-offset not set to 0
-olts to count without -3.3
-casting done when possible