added dev3 files
reformatted
generalized md handling