Allow changing done and cancel button titles

I added the ability to change the done and cancel button titles, for cases when someone needs to have a multilingual application. I also updated one of the samples to demonstrate usage (but it's commented out).