Added modal directive, credit for author in viewer.