Tidied Code

Fixed up a bunch of weird bugs.
Big thing is that now i don’t unregister the service when the
preference sets it to disabled. I use a static check whenever we
receive ongesturereognized. Not the best for battery but zero bugs with
it so far.