removed unused functions, added e-mail notification in case of deletion requests