code clening, commenting and beautifying (read as de-horrifying)