Merge pull request #3 from hhatefi/rewards

Merged fixed some bugs from Hassan.
- Added state reward computation,
- Adapted step size computation for state rewards,
- Added reward zero to deadlock states