Added email invoice functionality - watch for bugs