removes debug statements, unused code