snoopy model for the system with control
removed unused functions. added comments
report writing