Detab the code, turn off othe 'Resend ...' message, delete some commented-out code and update a few comments.