mail class added
mail bugfixes
some bugfixes
test