Removes debug messages and useless files