updated submodules
added example.sh and rudimentary Makefile
clear Dup flag when we wouldn't set it ourselves