first commit
fixed md bugs
Merge pull request #1 from dgreisen/master

Very rough first draft