Added a sample program and extended features of dice

This is now more comprehensive then originally planned. Worked on it all
this morning for these results. Debuging included.