Rewards defined in applicaiton.conf.
Fix bugs concerning optimal policy.