Removed 'cout' statements and added comments