Add threads & Fix infinite loop #9

threads is usefull to stop them when the service is destroyed (= kill app)