Reward

Reward rewrite to allow for analog output.