added bound checking to the Result object & minor bugfix

Some changes to the Result object... more changes to come.