Initial work on MD repository and Examine indexing. - buggy