Changed the structure for the simulink simulation. Simplified