Added base MD implementation and an example