Refactored DialogOptions.java + DialogFactory.java
Updated examples.