update sub_week script
fix script
tweaks to payment code
fix payment profile bug