Fixed startup wait time to be long enough for device to reliably startup
Fixed double counting (both transitions on interrupt to just rising). Still is pretty inaccurate though.