added worker class, made timer faster
played some code golf