added sendmail
added statistic functions
added percetile function in statistic
statistic and sending mail works