Updated modalModelProvider functionality and added examples throughout