fixed read in function for fractions
Merge pull request #2 from hhatefi/rewards

Accumulated rewards by Hassan
fixed some buges.