Modals now focus on the first input within them when activating. Made code more DRY. Updated docs