Removes unnecessary code and comments