removed debug statements (`puts`) and comments