Modelling, Simulation and Control of the Dyeing Process