added Main.sml, mldv basis and updated a few minor things