Added Constructor parameters to DecodingThread
Refined design