Fix allowable submission periods, now configurable (default 1st of month is end in production)
fixes and tidy for production launch