Added getSelectedDice method

Also added some comments to the sample program