Removed unnecessary imports and debug output via <iostream>.