updated simulink functionality
updated simulink functionality