Rewards defined in applicaiton.conf.
Fix bugs concerning optimal policy.
Merge branch 'dev'. Version v0.0.3.