added sending email to administration email script, and fixed some small bugs