added bound checking to the Result object & minor bugfix
Merge pull request #10 from jniznan/result_improvements

added bound checking to the Result object & minor bugfix