Added statistics

Now can compute statistics and send it to user emails