added monthly email invoice and payment failure functionality