Added a modal option example and re-built example and library

I have added an example of the 'modal' option working correctly (and recompiled the code correctly this time)