some refactoring of the modal. updated the readme.