cleaned up deleting comments code

finally done, i think.