Merge pull request #2 from robbaman/closedialog-value

Added support for the close value to the openModal() function as well.
Merge pull request #3 from robbaman/closedialog-value

Added default values for the two automatic methods of closing the dialog.
Distinguish close button and overlay. Update README.