add debug messages in monthly invoice script