Added composite reward and training code.
Fixed rewards to be more correct (non-cumulative).
Added new state generator. Fixed various gradient issues. Still debugging PDF normalization.